package com.ruoyi.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.system.domain.MaterialEntity;
import com.ruoyi.system.domain.MaterialLogEntity;
import com.ruoyi.system.domain.MaterialLogStatisticsEntity;
import com.ruoyi.system.domain.TProjectAim;
import com.ruoyi.system.mapper.GantryMapper;
import com.ruoyi.system.mapper.MaterialLogMapper;
import com.ruoyi.system.mapper.MaterialMapper;
import com.ruoyi.system.mapper.TProjectAimMapper;
import com.ruoyi.system.service.MaterialLogService;
import com.ruoyi.system.service.MaterialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MaterialLogServiceImpl extends ServiceImpl<MaterialLogMapper, MaterialLogEntity> implements MaterialLogService {

    @Autowired
    private MaterialLogMapper materialLogMapper;

    /*
    *  出库按照天统计
    * */
    public List<MaterialLogStatisticsEntity> sumNumByDateAndName(String beginTimeFormat, String endTimeFormat) {
        return materialLogMapper.sumNumByDateAndName(beginTimeFormat, endTimeFormat);
    }
}
